import type { MenuSaveOrUpdateParams } from '@/types'

export const defaultFormData: Partial<MenuSaveOrUpdateParams>
  = {
    menuName: '',
    parentId: null as any,
    menuType: 1,
    menuAddress: '',
    menuIcon: '',
    menuEnable: 1,
    menuTitle: '',
    identifying: '',
    redirect: '',
    xh: 0,
  }

export const formRules = generateCurrencyFormRules(
  defaultFormData,
  ['menuIcon', 'menuEnable', 'menuTitle'],
)
